package com.demo.sbexample.mapper;

import com.demo.sbexample.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SysUserMapper extends SuperMapper<SysUser> {


    //指定在xml中编写sql语句
    //List<SysUser> selectUserList();

    //@Select(value = "select * from sys_user")
    Integer selectUserSql();

    List<SysUser> selectUserSql2();

    @Select("select * from sys_user where age > 30")
    List<SysUser> selectUserSql3();

}
